
package com.be.beadmin.service.dto.input;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
* @description /
* @author chenwei
* @date 2023-01-16
**/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SerialNumberDto {
    @NotBlank
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "编码位数")
    private Integer codeCnt;

    @ApiModelProperty(value = "连接符号")
    private String linkSymbol;

    @ApiModelProperty(value = "最大值")
    private Integer maxNumber;

    private int invisible = 0;
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "上次保存值")
    private String preRuleValue;



    public SerialNumberDto(String code, String name, Integer codeCnt, int invisible) {
        this.code = code;
        this.codeCnt = codeCnt;
        this.name = name;
        this.invisible = invisible;
    }
}